package com.common.account.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.common.basis.entity.BaseEntity;
import com.common.basis.oauth.AuUser;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户消息
 *
 * @author mdc
 * @date 2021-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AuMessageUser extends BaseEntity {

    /**
     * 用户、角色、权限、部门ID
     */
    @NotBlank
    private String pauId;

    /**
     * 发送状态0代发送1已发送2未读3已读
     */
    @NotNull
    private Integer mmuType;

    /**
     * 信息ID
     */
    @NotBlank
    private String mmuMm;

    /**
     * openId
     */
    private String openId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 消息
     */
    @TableField(exist = false)
    private AuMessage auMessage;

    /**
     * 用户
     */
    @TableField(exist = false)
    private AuUser auUser;

}
